package day02;

public class LxDemo {
    public static void main(String[] args) {

        int a1 = 888 ;
        long a2 = 999L ;
        float a3 = 777F ;
        double a4 = 666.0 ;

        a1 = (int)a2 + (int)a3 + (int)a4 ;
        System.out.println( a1 );

        a2 = a1 + (long)a3 + (long)a4 ;
        System.out.println( a2 );

        a3 = a1 + a2 + (float)a4 ;
        System.out.println( a3 );

        a4 = a1 + a2 + a3 ;
        System.out.println( a4 );

        boolean a5 = a1+a2 >= 9999 ;
        System.out.println( a5 );

        boolean a6 = a1+a2 <= 9999 ;
        System.out.println( a6 );

        char c1 = 'A';
        char c2 = 'B';
        System.out.println( 'A' + 'B' );

        System.out.println( (int)'A' );
        System.out.println( 'A' );

        byte b1 = 8 ;
        byte b2 = 10 ;
        byte b3 = (byte)(b1+b2) ;
        System.out.println( b3 );

        double play = 6000.0 ;
        play = play + 1000 ;
        System.out.println( play );

        play = play - 3000 ;
        System.out.println( play );

        char op1 = '美';
        char op2 = '容';
        char op3 = '发';
        System.out.println( op1 );
        System.out.println( op2 );
        System.out.println( op1 );
        System.out.println( op3 );

        String aa1 = "快乐的池塘";
        String aa2 = "有只小青蛙";
        System.out.println( aa1 );
        System.out.println( aa2 );
    }
}
